package com.ttx.pattern.example.proxy.after;


/**
 * @author TimFruit
 * @date 19-5-26 上午10:25
 */
public class Proxy implements Subject {

    private Subject subject;

    public Proxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void request() {
        System.out.println("增加事务...");
        subject.request();
    }
}
